using System;
using System.IO;
using Qyoto;
using Clandestine.Audio;

namespace Shlick
{
	static class MainClass
	{
		public static void Main (string[] args)
		{
			Directory.SetCurrentDirectory("../datas/");
			
			QApplication application = new QApplication (args);
            application.ApplicationName = "Test";
            
            QInitResources__dest_class__.QInitResources();
 			
 			application.QuitOnLastWindowClosed = true;
 			MainWindow mainWindow = new MainWindow();
 			mainWindow.Show();
 			
			//audioTest();

			QApplication.Exec();
		}
		
		private static void audioTest()
		{
			Audio audi = new Audio();
			Sound snd = new Sound(audi, "dramallama.ogg");
			snd.Play();
			
			Console.WriteLine("( Locking until music finishes. Just showing off Sound.Playing :D )");
			
			while (snd.Playing)
				System.Threading.Thread.Sleep(100);
		}
	}
}

